package cn.wolfcode.crm.web.controller;

import cn.wolfcode.crm.query.AttendanceQueryObject;
import cn.wolfcode.crm.query.SalaryQueryObject;
import cn.wolfcode.crm.service.ISalaryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@RequestMapping("/salary")
public class SalaryController {

    @Autowired
    private ISalaryService salaryService;

    @RequestMapping("/view")
    public String view() {
        return "/employee_management/salary";
    }

    @RequestMapping("/query")
    @ResponseBody
    public Object query(SalaryQueryObject qo) {

        return salaryService.query(qo);
    }

}
